Increase MOTOR_CURRENT_PWM_RANGE to 2900 for Ultimain2 boards #27705
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
I noticed that using the Marlin 2.x.x firmware the steppers would run significantly hotter over the stock Ultimaker OEM Marlin firmware for the Ultimain2 boards - eventually leading to the stepper drivers overheating. I originally had to reduce the stepper current drives to absurdly low levels until I read the schematics of the Ultimain 2 boards to see why:
Referencing the pcb schematics found here and the A4988 stepper drivers datasheet found here
The RC circuit is used to convert the 5V pwm signal to an analog signal according to this image (circled in red):

At 100% duty cycle we effectively have a voltage divider circuit that feeds into VREF (R1 = 2k and R2 = 604 Ohms) 1.16V.
Using the current formula from page 9 of the datasheet (and RS = 0.05 Ohms from the datasheet):

The current limit of the stepper driver is effectively 2.9 Amps. Thus the range of 2000 mA in the current configuration found in pins_ULTIMAIN_2.h is incorrect and should be increased.
I personally was sitting on this change for years and ran this on my Ultimaker Original Plus. The steppers and drivers no longer overheat with this change applied.
Requirements
Ultimaker with Ultimain2 board installed (UMO+/UM2/UM3)
Benefits
Fix overheating of stepper motors and drivers during normal use when the current is set to the ultimaker defaults.
Configurations
Use the default configurations for Ultimaker Original Plus/Ultimaker 2 found in the examples folder of MarlinFirmware/Configurations
Related Issues
No known related issues so far.